<template>
  <div class="yj-wrapper">
    <div class="flex">
      <Sliderbar></Sliderbar>
      <div class="yj-content-wrap">
        <Head></Head>
        <router-view v-slot="{ Component }">
          <transition name="move" mode="out-in">
            <div class="yj-content pd20">
              <component :is="Component" />
            </div>
          </transition>
        </router-view>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import Head from './head.vue';
import Sliderbar from './siderbar.vue';
</script>

<style lang="scss" scoped>
.yj-content-wrap{
  width: 100%;
  .yj-content{
    height: calc(100% - 70px);
    box-sizing: border-box;
  }
}
</style>
